package com.tms.user.feign;

import com.tms.systemPermission.bean.SystemPermission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Author：潘建冰
 * Package：com.tms.user.feign
 * Project：TaskManageSystem
 * name：PermissionFeignClient
 * Date：2025/3/26  15:20
 */

@FeignClient(value = "service-permission") //Feign客户端  //fallback 兜底回调
public interface PermissionFeignClient {

    @GetMapping("/permission/system/getPermissionCode")
    List<String> getPermissionCode(@RequestParam String userId);

    @GetMapping("/permission/system/getRoleCode")
    List<String> getRoleCode(@RequestParam String userId);

    @GetMapping("/permission/system/getMenuTree")
    List<SystemPermission> getMenuTree(@RequestParam String userId);
}
